<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addAdmin.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <style>
body{
	 margin:0;
	}
   .div1{
	background: #000;
	color: #FFF;
	width: 100%;
	height: 80px;
	display: table-cell;
	text-align: center;
	vertical-align: middle;
	float: left;
	   }
	.div2{
		background: #000;
	  color: #FFF;
		}
		 .div3{
	background: #000;
	color: #FFF;
	width: 100%;
	height: 60px;
	display: table-cell;
	text-align: center;
	vertical-align: middle;
	float: left;
	   }
	   .div4{	
	   display:table;	   
		    margin:100px auto 0 auto;
			}
			td{
			color:#FFF;
			text-align: center;
		}
		td a{
		   color: #FFF;
		}
		form{
			color: #FFF;
			}
</style>
<%   String username = (String)session.getAttribute("username1");
      String password = (String)session.getAttribute("password1");
      if(username == null){
      session.setAttribute("kk", "请先登入");
      response.sendRedirect("index.jsp");
      }
 %>
<body>
 <div style="background-color:#000000; height: 100%">
<div class="div1">
  <h1 style="size:20px">新闻发布管理</h1>
</div>
<div class="div2">
<table width="100%" border="2" style="text-align:center; font-family:'微软雅黑';">
  <tr>
    <td width="16%"> <a href="#">首页</a></td>
    <td  width="16%"><a href="login.jsp">登录页面</a></td>

    <td  width="16%"><a href="addAdmin.jsp">增加Admin</a></td>
    <td  width="16%"><a href="userModify.jsp">更改信息</a></td>
    <td  width="16%"><a href="addNews.jsp">新闻发布</a></td>
    <td  width="16%"><a href="listNews.jsp">News详情</a></td>

  </tr>
</table>

</div>

<div class="div3">
<table width="100%" border="2">
  <tr>
    <td><h4>用户注册</h4></td>
  </tr>
</table>

     
</div>

<div class="div4">    
   <form action="AddAdminServel" method="post">
    用户名：<input type="text" name="username" id="username"><br><br>
    密码：  <input type="password" name="password" id="password"><br><br> 
    性别：  <select name="sex" id="sex">   
        <option value="">--请选择--</option>
        <option value="男">男</option>   
        <option value="女">女</option>                 
       </select>&nbsp;&nbsp;  
  QQ：   <input type="text" name="qq" id="qq"><br><br>
    年龄： <input type="text" name="age" id="age"><br><br>
  Email： <input type=text name="email" id="email"><br><br>
   <input type="submit" name="submit" value="注册">
 </form>
</div>
</div>
</body>
  


</html>
